package com.seafood.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.time.LocalDate;

/**
 * 溯源信息DTO
 */
@Data
public class TraceabilityDTO {
    
    private Long id;
    
    @NotBlank(message = "批次号不能为空")
    @Size(max = 100, message = "批次号长度不能超过100字符")
    private String batchNumber;
    
    @NotNull(message = "产品ID不能为空")
    private Long productId;
    
    private String productName;
    
    private String fishingVessel;
    
    private String fishingLocation;
    
    private String fishingCoordinates;
    
    private LocalDate fishingDate;
    
    private String fishingMethod;
    
    private String processingFacility;
    
    private LocalDate processingDate;
    
    private String freezingMethod;
    
    private String qualityCertificate;
    
    private String inspectionReport;
    
    private String qrCode;
    
    private String qrCodeUrl;
    
    private String transportCompany;
    
    private String transportTemperature;
    
    private String createdAt;
    
    private String updatedAt;
}